﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/AdminPage.master" AutoEventWireup="true" CodeFile="Mail_SendEmail.aspx.cs" Inherits="Admin_Mail_SendEmail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="head">
        <strong>
    <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="White" 
        Text="Send Email"></asp:Label>
        </strong>
    <table style="width: 100%">
        <tr>
            <td class="style9" style="width: 180px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style9" style="width: 180px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="font-weight: bold; width: 180px">
                &nbsp;</td>
            <td style="width: 92px; font-weight: bold">
                Email google</td>
            <td>
                <asp:TextBox ID="txtEmailG" runat="server" Width="150px">f1101008s1@gmail.com</asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtEmailG" ErrorMessage="Email can't be blank" 
                    ForeColor="Red" ValidationGroup="Send">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmailG" ErrorMessage="You did not enter a valid email" 
                    ForeColor="Red" 
                    ValidationExpression="[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+" 
                    ValidationGroup="Send">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="font-weight: bold; width: 180px">
                &nbsp;</td>
            <td style="width: 92px; font-weight: bold">
                Password</td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtPassword" ErrorMessage="Password can't be blank" 
                    ForeColor="Red" ValidationGroup="Send">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="font-weight: bold; width: 180px">
                &nbsp;</td>
            <td style="width: 92px; font-weight: bold">
                To</td>
            <td>
                <asp:Label ID="lbEmailTo" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="font-weight: bold; width: 180px">
                &nbsp;</td>
            <td style="width: 92px; font-weight: bold">
                Subject</td>
            <td>
                <asp:TextBox ID="txtSubject" runat="server" Width="150px">Online Post Office</asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtSubject" ErrorMessage="Subject can't be blank" 
                    ForeColor="Red" ValidationGroup="Send">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="font-weight: bold; width: 180px" valign="top">
                &nbsp;</td>
            <td style="width: 92px; font-weight: bold" valign="top">
                Content</td>
            <td valign="top">
                <asp:TextBox ID="txtContent" runat="server" Rows="6" TextMode="MultiLine" 
                    Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtContent" ErrorMessage="Content can't be blank" 
                    ForeColor="Red" ValidationGroup="Send">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="font-weight: bold; width: 180px" valign="top">
                &nbsp;</td>
            <td style="width: 92px; font-weight: bold" valign="top">
                &nbsp;</td>
            <td valign="top">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="font-weight: bold; width: 180px" valign="top">
                &nbsp;</td>
            <td style="font-weight: bold" valign="top" colspan="2">
                <asp:ValidationSummary ID="vsError" runat="server" ForeColor="Red" 
                    ValidationGroup="Send" />
            </td>
        </tr>
        <tr>
            <td class="style9" style="width: 180px">
                &nbsp;</td>
            <td style="width: 92px">
                &nbsp;</td>
            <td>
                <asp:ImageButton ID="imgbSend" runat="server" ImageUrl="~/images/img_Send.png" 
                    onclick="imgbSend_Click" ValidationGroup="Send" />
                <asp:ImageButton ID="imgBack" runat="server" ImageUrl="~/images/img_Back.png" 
                    onclick="imgBack_Click" />
            </td>
        </tr>
        <tr>
            <td class="style9" style="width: 180px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </div>
</asp:Content>

